package edu.dayu.abstractFactory;

public class ShapeFactory extends AbstractFactory{
    @Override
    public Shape getShape(String shape) {
        if (shape.equals("square")){
            return new Square();
        }else if (shape.equals("circle")){
            return new Circle();
        }else {
            return null;
        }
    }

    @Override
    public Color getColor(String color) {
        return null;
    }
}
